package cn.com.basic.framework.exception.enums.errors;

import cn.com.basic.framework.exception.enums.IEnum;

/**
 * 通用枚举
 * @author mj1996
 */

public enum Status implements IEnum<Integer, String> {
    /**
     * 有效 - 1
     */
    VALID(1, "有效的"),

    /**
     * 无效 - 0
     */
    INVALID(0, "无效的");

    Status(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    private final Integer key;
    private final String value;

    @Override
    public Integer getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
